package com.liyk.shop.service.impl;

import com.liyk.shop.domain.entity.ProductKillOrder;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.liyk.shop.dao.ProductKillOrderDao;

@Service
public class ProductKillOrderService extends BaseServiceImpl<ProductKillOrder, ProductKillOrderDao> {

    @Resource
    private ProductKillOrderDao productKillOrderDao;

    public ProductKillOrder getByUserIdAndKillId(Integer userId,Integer killId){
        ProductKillOrder order = new ProductKillOrder();
        order.setUserId(userId);
        order.setKillProductId(killId);
        return this.get(order);
    }
}

